package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * Hystrix熔断器实现类
 */
@Component
public class VodFileDegradeFeignClient implements VodClient{

    @Override
    public R uploadVideo(MultipartFile file) {
        return R.error().message("time out"); //超时处理
    }

    @Override
    public R deleteVideo(String videoId) {
        return R.error().message("time out");
    }

    @Override
    public R deleteVideoList(List<String> videoIdList) {
        return R.error().message("time out");
    }
}
